//创建判断是否登录的服务

import { Injectable } from "@angular/core";


@Injectable()
export class AuthService{
    isLoggedIn = false;

    login(){
        this.isLoggedIn = true;
    }

    logout(){
        this.isLoggedIn = false;
    }
    
    LoggedIn(){
        return this.isLoggedIn;
    }
}